<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once "function_sec_bindwidth.php";

$in_array['Name'] = base64_encode($_POST['name']);
$in_array['Filter'] = $_POST['filter'];
$in_array['Enabled'] = $_POST['enabled'];
$in_array['BandWidth'] = $_POST['bandwidth'];
$in_array['Dev'] = $_POST['dev'];


AppendXmlSecOneBindWidth($in_array);

include "function_misc_log.php";
$in_array['Name'] = "'". ($in_array['Name']). "'";
$in_array['Note'] = "'". ($in_array['Note']). "'";
logger("Add", $in_array,"Object_Qos_BandWidth");

include "function_web_misc.php";
PrintSuccessPageAndJump('sec_policy_bandwidth.php');

//echo("<meta http-equiv='refresh'content=0;URL='sec_policy_bandwidth.php'>");
?>
